package com.njtoyo.taxi.admin.rest.wrapper.business.company;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Objects;

@ApiModel("公司列表查询模型")
@Data
public class CompanyListWrapper extends Page<CompanyListWrapper> {
    public CompanyListWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty(value = "运营区")
    private Long cantonId;

    @ApiModelProperty(value = "公司名称")
    private String name;

    @ApiModelProperty(value = "负责人")
    private String personInCharge;

    @ApiModelProperty(value = "联系电话")
    private String contactNumber;

    private List<Long> companyIds;

    private List<Long> cantonIds;
}
